package classleader;

/**
 * @Author：LJ
 * @Description：类加载器示例
 * @Date: 2017/11/29
 * @Modified By:
 */
public class ClassLoaderTree {
    public static void main(String[] args) {
        ClassLoader loader = ClassLoaderTree.class.getClassLoader();
        while (loader != null) {
            System.out.println(loader.toString());
            loader = loader.getParent();
        }
    }
}
